package org.ubik.filtertreetable.util;

import java.awt.Component;
import java.awt.Graphics;

import javax.swing.Icon;
import javax.swing.ImageIcon;

public enum Icons implements Icon{
	GROUP_DIRECTORY	("groupdirectory.png"),
	NEW_ENV			("new_env.png"),
	REPLICATE_ENV	("replicate_env.png"),
	REPL_ANLYSIS	("propertiesfile.png"),
	QUIT			("quit.png"),
	OPEN			("open.png"),
	DELETE			("delete.png"),
	COMPARE			("compare.png"),
	COMPARE_FILE	("propertiesfile.png"),
	CLOSE			("close.png"),
	RIGHT			("right.png"),
	LEFT			("left.png"),
	ROOT			("root.png"),
	SEARCH			("search.png"),
	SERVER			("server.png"),
	REFRESH			("refresh.png"),
	NEW				("new.png"),
	GROUP			("group.png"),
	EXCEL			("excel_icon.png"),
	EDIT			("edit.png"),
	CANCEL			("no.png"),
	LOCK			("lock.png"),
	UNLOCK			("decrypted.png"),
	COPY			("copy.png"),
	SHOW			("show.png"),
	PROPERTY		("property.png"),
	JRISK			("jrisk.png"),
	PROFILE			("profile.png"),
	EXPAND			("expand.png"),
	COLLAPSE		("collapse.png"),
	FOLDER_PROFILE	("folder_profile.png"),
	LEAF			("leaf.png"),
	USER			("user.png"),
	EXPORT			("export.png"),
	OK				("ok.png"),
	NO				("no.png"),
	JVM				("jvm.png"),
	DEF_PROFILE		("def_profile.png"),
	JRISK_PROFILE	("jrisk_profile.png"),
	HAWK_PROFILE	("hawk_profile.png"),
	HAWK_LEAF		("hawk_leaf.png"),
	JRISK_LEAF		("jrisk_leaf.png"),
	ADD				("add.png"),
	ERASER			("eraser.png"),
	CONFIG_FILE		("config_file.png"),
	CONFIG			("config.png"),
	DPL				("dpl.png"),
	SOURCE_DATABASE ("source_database.png"),
	SOURCE_FILE		("source_file.png"),
	CLEARCASE		("clearcase_icon.png"),
	SAVE			("save.png"),
	SAFE			("safe.png"),
	SENSITIVE		("sensitive.png"),
	BLANK			("blank.png"),
	
	//startUpScript
	RUNNING			("started.png"),
	STARTING		("starting.png"),
	STOPPED			("stopped.png"),
	STOPPING		("stoping.png"),
	ERROR			("delete.png"),
	
	LOAD			("loading.gif"),
	
	STATUS			("info.png"),
	STOP 			("quit.png"),
	START			("dpl.png"),
	KILL			("kill.png"),
	PUTTY			("console.png"),
	
	//carto
	CARTO			("carto.png"),
	PROPERTY_CARTO	("propertycarto.png"),
	GROUP_CARTO	    ("groupcarto.png"),
	
	//cut past...
	CUT				("cut.png"),
	PASTE			("paste.png"),
	UP				("up.png"),
	DOWN			("down.png"),
	
	
	TRANSFERT		("transfer.png"),
	INFO			("info.png"),
	FLAG			("flag.png"),
	SWITCH_USER		("switchuser.png"),
	
	PARIS			("France.png"),
	NEW_YORK		("usa.png"),
	HONG_KONG		("hong_kong.png"),
	TOKYO			("Japan.png"),

	
	INACTIVE_READER		("inactive_reader.png"),
	INACTIVE_READERPLUS	("inactive_readerplus.png"),
	INACTIVE_EDITOR_RUNTIME		("inactive_editor_runtime.png"),
	INACTIVE_MANAGER	("inactive_manager.png"),
	INACTIVE_EDITOR		("inactive_editor.png"),
	
	READER			("reader.png"),
	READERPLUS		("readerplus.png"),
	MANAGER			("manager.png"),
	EDITOR_RUNTIME			("editor_runtime.png"),
	EDITOR			("editor.png"),
	
	GLOBAL_VIEW		("globalview.png"),

	HELP			("help.png"),
	
	NIMBUS			("nimbus.png"),
	WINDOWS			("windows.png"),
	MOTIF			("motif.png"),
	METAL			("metal.png"),
	
	ENV 			("env.png"),
	
	SERVERS_TYPE	("serverstype.png"),
	PROXY 			("proxy.png"),
	CLT 			("client.png"),
	GIGASPACE 		("gigaspace.png");
	
	private final ImageIcon icon;
	
	Icons(String path){
		icon = new ImageIcon(getClass().getResource("/org/ubik/filtertreetable/img/"+path));
	}
	public ImageIcon getImage() {
		return icon;
	}
	
	@Override
	public int getIconHeight() {
		return icon.getIconHeight();
	}
	@Override
	public int getIconWidth() {
		return icon.getIconWidth();
	}
	@Override
	public void paintIcon(Component c, Graphics g, int x, int y) {
		icon.paintIcon(c,g,x,y);	
	}

}
